package cloud.ben.smallscalepigfarmmanagementsystem.service.monitoring;

import cloud.ben.smallscalepigfarmmanagementsystem.entity.monitoring.EnvironmentalMonitoring;
import cloud.ben.smallscalepigfarmmanagementsystem.utils.RespBean;

/**
 * @Author: Ben
 * @Date: 2022/5/2 11:28
 */
public interface IEnvironmentalMonitoringService {
    /**
     * 增加环境监控信息
     * @param environmentalMonitoring
     * @return RespBean
     */
    RespBean insertEnvironmentalMonitoring(EnvironmentalMonitoring environmentalMonitoring);

    /**
     *根据id删除环境监控信息
     * @param id
     * @return RespBean
     */
    RespBean deleteEnvironmentalMonitoring(Integer id);

    /**
     * 修改环境监控信息
     * @param environmentalMonitoring
     * @return RespBean
     */
    RespBean updateEnvironmentalMonitoring(EnvironmentalMonitoring environmentalMonitoring);

    /**
     * 分页查询环境监控信息
     * @param pageNumber
     * @param pageSize
     * @return RespBean
     */
    RespBean selectEnvironmentalMonitoringByPage(Integer pageNumber,Integer pageSize);


    /**
     *查询环境监控记录数量（方便分页）
     * @return RespBean
     */
    RespBean selectEnvironmentalMonitoringNum();
}
